package com.bw.module_inspection.repo

import com.bw.lib_common.model.BaseRepository
import com.bw.lib_http.OkHttpClientManager
import com.bw.module_inspection.api.InspectionApiService
import com.bw.module_inspection.model.AddInspectionEntity

/**
 * 智慧园区-07-巡检管理V1.1 史建军20250512
 */
class InspectionRepo: BaseRepository<InspectionApiService>() {
    override fun createApiServer(): InspectionApiService = OkHttpClientManager.retrofitInstance.create(InspectionApiService::class.java)

    suspend fun getInspectionList()=apiService.getInspection()

    suspend fun addInspection(addInspection: AddInspectionEntity)=apiService.addInspection(addInspection)

    suspend fun getInspectionDetail(id:Int)=apiService.getInspectionDetail(id)

    suspend fun getInspectionAgent(location:String,name:String)=apiService.getInspectionAgent(location,name)


}